package com.wswy.wzcx.module;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.che.libcommon.ui.BaseFragment;
import com.wswy.wzcx.ui.main.MainActivity;

public interface IFlavorConfigure {

  IFlavorConfigure DEFAULT = new IFlavorConfigure() {
    @Override
    public Intent getMainAct(Context context, Intent origin) {

      Intent intent = new Intent(context,MainActivity.class);

      if (origin != null){
        Bundle extras = origin.getExtras();
        if (extras != null){
          intent.putExtras(extras);
        }
      }
      return intent;
    }

    @Override
    public BaseFragment createFragment(String tag,Intent intent) {
      return null;
    }

    @Override
    public Class<? extends Activity> getMainActClass() {
      return MainActivity.class;
    }
  };



  Intent getMainAct(Context context,Intent origin);
  @Nullable BaseFragment createFragment(String tag,Intent intent);

  Class<? extends Activity> getMainActClass();

}
